package com.feelafter.index.bean;

import web.search.Searchable;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/5/26.
 */
public class NewsTake  implements Searchable {
    private long id;
    private String titleKey;
    private double score;


    public String getTitleKey() {
        return titleKey;
    }

    public void setTitleKey(String titleKey) {
        this.titleKey = titleKey;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }


    public NewsTake(long id, String titleKey) {
        this.id = id;
        this.titleKey = titleKey;
    }

    public NewsTake() {
    }

    @Override
    public long id() {
        return id;
    }

    @Override
    public void setId(long id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }

    @Override
    public List<String> storeFields() {
        return Arrays.asList(new String[]{"id"});
    }

    @Override
    public List<String> indexFields() {
        return Arrays.asList(new String[]{"titleKey"});
    }

    @Override
    public float boost() {
        return 1.1f;
    }

    @Override
    public Map<String, String> extendStoreDatas() {
        return null;
    }

    @Override
    public Map<String, String> extendIndexDatas() {
        return null;
    }

    @Override
    public List<? extends Searchable> ListAfter(long id, int count) {
        return null;
    }

    @Override
    public int compareTo(Searchable o) {
        return 0;
    }
}
